/**
 * @file   csv_ops.h
 * @brief  csv文件保存
 * @encode UTF-8
 * @log    date        author      notes
 *         2021.09.15  Jimmy       first version
 */
#include <iostream>
#include <unistd.h>
#include <vector>

class CsvOps
{
    public:
        CsvOps(std::string path, std::string type);

        ~CsvOps();

        bool append(int a, int b);
        bool append(std::vector<int> data);

        bool deleteFile();
        bool save();

    private:
        std::string mPath;
        FILE * mFd = nullptr;

};



/* End of file */

